// 封装 token 相关方法

const TOKENKEY = 'token_key'

function setToken (val) {
  localStorage.setItem(TOKENKEY, val)
}
function getToken () {
  return localStorage.getItem(TOKENKEY)
}

function removeToken () {
  localStorage.removeItem(TOKENKEY)
}

export {
  setToken,
  getToken,
  removeToken
}